package com.levy.contronller.jvm.classLoader;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

/**
 * Created by levy on 2019/5/20.
 */
public class MyTest11 {

    public static void main(String[] args) throws IOException {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();

        String resouceName = "com/levy/contronller/jvm/classLoader/MyTest11.class";

        Enumeration<URL> resources = classLoader.getResources(resouceName);
        while (resources.hasMoreElements()) {
            URL url = resources.nextElement();
            System.out.println(url);
        }


        Class<String> stringClass = String.class;
        System.out.println(stringClass.getClass());
        System.out.println(stringClass.getSuperclass());
    }
}
